<html>
 <head>
  <script type="text/javascript">
   function hello(){
    alert("Hello, world!");
   }
  </script> 
 </head>
 <body>
  <a onclick="hello()" href="#">hello</a>
 </body>
</html>
